/*
package com.cy.pj.sys.web.controller;

import com.cy.pj.sys.pojo.SysNotice;
import com.cy.pj.sys.service.SysNoticeService;
import com.cy.pj.sys.util.PageUtil;
import com.cy.pj.sys.web.pojo.JsonResult;
import com.github.pagehelper.ISelect;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

*/
/*此对象为公告模块控制层处理器对象*//*

@RestController
@RequestMapping("/notice/")
public class SysNoticeController {
    @Autowired
    private SysNoticeService sysNoticeService;
    @GetMapping
    public JsonResult doFindNotices(SysNotice notice){
        //String pageCurrent = request.getPathInfo();
*/
/*        PageInfo<SysNotice> pageInfo=
                PageHelper.startPage(1,3).doSelectPageInfo(new ISelect() {
                    @Override
                    public void doSelect() {
                        sysNoticeService.findNotices(notice);
                    }
                });
                     return new JsonResult(pageInfo);*//*

            return new JsonResult(PageUtil.startPage().doSelectPageInfo
                    PageHelper.startPage(1,3).doSelectPageInfo(
                            ()->sysNoticeService.findNotices(notice)));
        }
*/
/*新增公告信息建议使用post请求*//*

@PostMapping
    public JsonResult doSaveNotice(@RequestBody SysNotice notice){
        sysNoticeService.saveNotice(notice);
        return new JsonResult("save ok");
    }
    @GetMapping("{id}")
    public JsonResult doFindById(@PathVariable Long id){
        return new JsonResult(sysNoticeService.findById(id));
    }
    @PutMapping
    public JsonResult doUpdateNotice(@RequestBody SysNotice notice){
        sysNoticeService.updateNotice(notice);
        return new JsonResult("update ok");
    }
    @DeleteMapping("{id}")
    public JsonResult doDeleteById(@PathVariable Long... id){
        sysNoticeService.deleteById(id);
        return new JsonResult("delete ok");
    }


}
*/
